package yongchuangquan;

public class Context {
    private IAttackstrategy iAttackstrategy;
    public Context(IAttackstrategy iAttackstrategy){
        this.iAttackstrategy=iAttackstrategy;
    }
    public void attack(){
        iAttackstrategy.execute();
    }
}
